package com.mingchuang.administrator.mingchuang;

import android.app.Application;

import com.lidroid.xutils.DbUtils;
import com.mingchuang.administrator.mingchuang.utils.Constant;

/**
 * Created by kipeng on 2016-3-20.
 */
public class AppApplication  extends Application{

   private  static DbUtils db ;

    @Override
    public void onCreate() {
        super.onCreate();
        db = DbUtils.create(this, Constant.DB_NAME);
}

    public static DbUtils getDb(){
        return  db;
    }
}
